package com.ruoyi.crm.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 报价变更单对象 quotation_change
 *
 * @author ruoyi
 * @date 2021-08-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuotationChange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 报价单号 */
    @Excel(name = "报价单号")
    private String quochangeNo;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customerName;
    /** 变更类型 */
    @Excel(name = "变更类型")
    private String changeType;

    /** 变更日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "变更日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeDate;

    /** 销售负责人 */
    @Excel(name = "销售负责人")
    private String follower;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 报价单号 */
    @Excel(name = "报价单号")
    private String quotationNo;

    /** 最新更换人 */
    @Excel(name = "最新更换人")
    private String progressLast;

    /** 条款与条件 */
    @Excel(name = "条款与条件")
    private String condition;

    /** 评论 */
    @Excel(name = "评论")
    private String comment;



    /** $table.subTable.functionName信息 */
    private List<CustomerProduct> customerProductList;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setQuotationNo(String quotationNo)
    {
        this.quochangeNo = quochangeNo;
    }

    public String getQuotationNo()
    {
        return quochangeNo;
    }
    public void setChangeType(String changeType)
    {
        this.changeType = changeType;
    }

    public String getChangeType()
    {
        return changeType;
    }
    public void setChangeDate(Date changeDate)
    {
        this.changeDate = changeDate;
    }

    public Date getChangeDate()
    {
        return changeDate;
    }
    public void setFollower(String follower)
    {
        this.follower = follower;
    }

    public String getFollower()
    {
        return follower;
    }

    public List<CustomerProduct> getCustomerProductList()
    {
        return customerProductList;
    }

    public void setCustomerProductList(List<CustomerProduct> customerProductList)
    {
        this.customerProductList = customerProductList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("quotationNo", getQuotationNo())
                .append("changeType", getChangeType())
                .append("changeDate", getChangeDate())
                .append("follower", getFollower())
                .append("updateTime", getUpdateTime())
                .append("customerProductList", getCustomerProductList())
                .toString();
    }
}